<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="renderer" content="webkit|ie-comp|ie-stand">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
	<meta http-equiv="Cache-Control" content="no-siteapp" />
	<link rel="Bookmark" href="/favicon.ico">
	<link rel="Shortcut Icon" href="/favicon.ico" />
	<!--[if lt IE 9]>
	<script type="text/javascript" src="__UU__/lib/lib/html5.js"></script>
	<script type="text/javascript" src="__UU__/lib/lib/respond.min.js"></script>
	<script type="text/javascript" src="__UU__/lib/lib/PIE_IE678.js"></script>
	<![endif]-->
	<link href="__UU__/css/H-ui.min.css" rel="stylesheet" type="text/css" />
	<link href="__UU__/css/H-ui.admin.css" rel="stylesheet" type="text/css" />
	<link href="__UU__/lib/Hui-iconfont/1.0.6/iconfont.css" rel="stylesheet" type="text/css" />
	<link href="__UU__/css/style.css" rel="stylesheet" type="text/css" />
	<!--[if IE 6]>
	<script type="text/javascript" src="__UU__/lib/DD_belatedPNG_0.0.8a-min.js" ></script>
	<script>DD_belatedPNG.fix('*');</script>
	<![endif]-->
	<title>修改密码</title>
</head>
<body>
	<nav class="breadcrumb">
		<i class="Hui-iconfont">&#xe67f;</i> 
		首页 <span class="c-gray en">&gt;</span> 
		商户信息 <span class="c-gray en">&gt;</span> 
		修改密码 
		<a class="btn btn-success radius r mr-20" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" >
			<i class="Hui-iconfont">&#xe68f;</i>
		</a>
	</nav>
	<div class="pd-20">
		
		<div class="mt-20">
			<form action="__APP__/Account/reset_pass" class="form form-horizontal" method="post" id="form1">
				<div class="row cl">
					<label class="form-label col-2">帐号：</label>
					<div class="formControls col-10">
						<input type="text" disabled="disabled" name="" id="" class="input-text" value="{$va.username}" style="width:250px"/>
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-2">&nbsp;</label>
					<div class="formControls col-10">
						<button type="button" class="btn btn-success radius" id="send_code"><i class="Hui-iconfont">&#xe696;</i> 获取验证码</button>
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-2">验证码：</label>
					<div class="formControls col-10">
						<input type="text" name="code" id="" datatype="n" nullmsg="请输入验证码" class="input-text"  style="width:250px" maxlength="4"/>
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-2">旧密码：</label>
					<div class="formControls col-10">
						<input type="password" name="oldpass" id="" datatype="*" nullmsg="请输入旧密码" class="input-text"  style="width:250px" maxlength="25"/>
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-2">新密码：</label>
					<div class="formControls col-10">
						<input type="password" name="newpass" id="" datatype="*" nullmsg="请输入新密码" class="input-text"  style="width:250px" maxlength="25"/>
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-2">确认密码：</label>
					<div class="formControls col-10">
						<input type="password" name="ckpass" id="" datatype="*" nullmsg="请确认密码" class="input-text"  style="width:250px" maxlength="25"/>
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-2">&nbsp;</label>
					<div class="formControls col-10">
						<button class="btn btn-primary radius" type="submit">
								<i class="Hui-iconfont">&#xe632;</i> 保存
						</button>
					</div>
				</div>
			</form>		
		</div>
	</div>
<script type="text/javascript" src="__UU__/lib/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="__UU__/lib/Validform/5.3.2/Validform.min.js"></script>
<script type="text/javascript" src="__UU__/lib/layer/2.1/layer.js"></script>
<script type="text/javascript" src="__UU__/js/H-ui.js"></script>
<script type="text/javascript" src="__UU__/js/H-ui.admin.js"></script>
<script>
   $("#send_code").click(function(){
	   var that = $(this);
	    $.ajax({
		   type:"post",
		   url:"__APP__/Account/sendmsg",
		   dataType:"json",
		   success:function(e){
			   if(e.code == 200){
				   settime(that);
			   }else{
				   layer.msg(e.msg);
			   }
		   },error:function(e){
			   layer.msg('网络错误');
		   }
	   })
   })
    var countdown=60; 
	function settime(obj) { 
	    if (countdown == 0) { 
	        obj.attr("disabled",false);    
	        obj.html('<i class="Hui-iconfont">&#xe696;</i> 获取验证码'); 
	        countdown = 60; 
	        return;
	    } else { 
	        obj.attr("disabled", true); 
	        obj.text(countdown+'s后重新发送');
	        countdown--; 
	    } 
		setTimeout(function() { 
		    settime(obj) }
		    ,1000) 
		}
  
</script>
<script>
$('#form1').Validform({
		tiptype:3,
		ignoreHidden:true,
		tipSweep:true
	});
	$('.skin-minimal input').iCheck({
			checkboxClass: 'icheckbox-blue',
			radioClass: 'iradio-blue',
			increaseArea: '20%'
		});
</script>
</body>
</html>
